﻿/*download time countdown*/
function setTime(number) {
    var sec = number; //$('#countdown span').text()
    var timer = setInterval(function () {
        $('#countdown strong').text(--sec);
        if (sec == 0) {
            $('#countdown').html('<a id="downloadBtn" onclick="javascript:download();" class="btn btn-bk">Tải tập tin</a>');
            clearInterval(timer);
        }
    }, 1000);
}

/*download function*/
function download()
{
    alert("Cái nhồn");
}

/*register redirect*/
function register() {
    $.get('/Account/LoginModal', null, function (data) {
        $("#loginContent").html(data);
    });
    $("#loginModal").modal({
        'show': true
    });
}

function login() {
    $.get('/Account/LoginModal', null, function (data) {
        $("#loginContent").html(data);
    });
    $("#loginModal").modal({
        'show': true
    });
}

function viewFolder() {
    $.get('/Account/FolderInfo', null, function (data) {
        $("#contentBody").html(data);
    });
    $("#contentModal").modal({
        'show': true
    });
}